<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <div id="app">
        <label for="license">
            <input type="checkbox" id="license" v-model="license">同意协议
        </label>
        <h2>您选择的是：{{license}}</h2>
        <button v-bind:disabled="!license">下一步</button>
        <br>
        
        <input type="checkbox" value="篮球" v-model="hobbies">篮球
        <input type="checkbox" value="足球" v-model="hobbies">足球
        <input type="checkbox" value="乒乓球" v-model="hobbies">乒乓球
        <input type="checkbox" value="羽毛球" v-model="hobbies">羽毛球
        <h3>您的爱好是： {{hobbies}}</h3>

        <label v-for="(item, index) in originHobbies" :key="index" >
            <input type="checkbox" :value="item" v-model="hobbies" :id="index">{{item}}
        </label>
    </div>

    <script src="../js/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                license: false,
                hobbies: [],
                originHobbies: ['篮球', '足球', '乒乓球', '羽毛球']
            }
        })
    </script>
</body>
</html>